/*
* name;
*/
class Consts {
    // 控制器命令
    static REPLACE_VIEW = 'replaceView';
    static LEVEL_SELECT = 'levelSelect';
    static START_GAME = 'startGame';
    static CAN_CONNECT = 'canConnect';
    static ADD_SCORE = 'addScore';
    static RESTART_GAME = 'restartGame';
    static NET_INIT = "netinit";
    static OPEN_UI = "openui";
    // 视图
    static INDEX_MEDIATOR = 'indexMediator';
    static LEVEL_SELECT_MEDIATOR = 'levelSelectMediator';
    static GAME_MEDIATOR = 'gameMediator';
    static LEVELUP_MEDIATOR = 'levelUpMediator';
    static GAMEOVER_MEDIATOR = 'gameOverMediator';
    static SUSPEND_MEDIATOR = 'suspendMediator';
    static LOGIN_MEDIATOR = 'loginMediator';
    static LOADING_MEDIATOR = 'loadingMediator';
    static RANK_MEDIATOR = 'rankMediator';
    static FARM_MEDIATOR = 'farmMediator';
    static MAIL_MEDIATOR = 'mailMediator';
    
    
    

    // 模型
    static LEVEL_DATA_PROXY = 'levelDataProxy';
    static GAMEDATA_PROXY = 'gameDataProxy';
    static PLAYERDATA_PROXY = 'playerDataProxy';
    

    //////////////////////////////////////////////
    // 事件
    static UPDATE_ITEMS = 'updateItems';
    static CONNECT_RESULT = 'connectResult';
    static UPDATE_SCORE = 'updateScore';
    static SHOW_PROGRASSBAR = 'showProgressBar';
    static CLOSE_LOADING = "closeLoading";
    //////////////////////////////////////////////
    // 常量

    static MAX_BLOCK_ID = 13;
    static SCORE = 2;

};
class BodyConsts{
    static LOGIN = "login";
    static LOADING = "loading";
    static FARM = "farmview";

}

/**
 * 道具类型
 */
enum PropCategory {
    Magnifier = 0,  // 放大镜
    Refresh,        // 重排
    Bomb            // 炸弹
}

class MediatorBody{
   public mediatorName:string = ""
}